package org.example.gateway.transfer;

import org.example.gateway.bean.RouteRule;
import org.example.gateway.pojo.dto.AppRuleDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AppRuleVoTransfer {
    AppRuleVoTransfer INSTANCE = Mappers.getMapper(AppRuleVoTransfer.class);

    AppRuleDto mapToVO(RouteRule routeRule);

    List<AppRuleDto> mapToVoList(List<RouteRule> routeRules);
}
